home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
462
< prev
next >
Wrap
Text File
|
1996-08-06
|
843b
|
33 lines
Path: baja.pacificrim.net!news
From: JACKIE MILLER <MSIMONDS@MAIL.PACIFICRIM.NET>
Newsgroups: comp.std.c
Subject: Need help with fprintf(stdprn,format,arg)
Date: 28 Feb 1996 16:43:22 GMT
Organization: MCI
Message-ID: <4h20na$6ps@baja.pacificrim.net>
NNTP-Posting-Host: whatcom-ppp17.pacificrim.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.22 (Windows; U; 16bit)
This short c program doesn't seem to work. I'm runiing a 486 clone with
Borland Turbo C.
#include>stdio.h>
main()
{
float f = 2.0134;
fprintf(stdprn, "Print this on the printer\r\n");
fprintf(stdprn, "and now some numbers: \r\n");
fprintf(stdprn, "The square of %f is %f",f,f*f);
fprintf(stdprn, "\f"); /**form feed**/
}
any help with redirecting out to the printer would be appreciated.
Thanks
Kevin.